(function($){
	/**
	 * 序列号Json,将复选框，多选下来列表框序列化为数组
	 */
	$.fn.serializeJson=function(){ 
		var serializeObj={}; 
		var array=this.serializeArray();
		$(array).each(function(){  
            if(serializeObj[this.name]){  //若已经包含这个Key
                if($.isArray(serializeObj[this.name])){  
                    serializeObj[this.name].push(this.value);  
                }else{  
                    serializeObj[this.name]=[serializeObj[this.name],this.value];  
                }  
            }else{  
                serializeObj[this.name]=this.value;   
            }
        });
		return serializeObj;  
	}
	
})(jQuery);